-
Notifications
You must be signed in to change notification settings - Fork 22
/nft-explorer new feature - search on sale for any token #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
/nft-explorer new feature - search on sale for any token #438
Conversation
@@ -121,7 +137,7 @@ export default function NftsComponent({ | |||
|
|||
const listTabList = [ | |||
{ value: 'nfts', label: t('tabs.all') }, | |||
{ value: 'onSale', label: t('tabs.onSale', { nativeCurrency }) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of removing the usage of t('tabs.onSale')
we need to update it in all languages.
we can just make it as "Listed".
t('tabs.onSale', { nativeCurrency })
will become t('tabs.onSale')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
view the comments
components/NftsComponent.js
Outdated
@@ -638,7 +677,7 @@ export default function NftsComponent({ | |||
(isValidTaxon(taxonQuery) ? ' ' + taxonQuery : '') + | |||
(ownerQuery ? ', ' + t('table.owner') + ': ' + ownerQuery : '') + | |||
(activeView === 'list' ? ' ' + t('tabs.list') : '') + | |||
(listTab === 'onSale' ? ' ' + t('tabs.onSale', { nativeCurrency }) : '') + | |||
(listTab === 'onSale' ? ' ' + 'On sale for tokens': '') + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use t('tabs.onSale')
components/NftsComponent.js
Outdated
/> | ||
</div> | ||
)} | ||
{!nftExplorer && saleCurrencyIssuer && saleCurrency && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why would we make it different for !nftExplorer?
we should keep the logic as we had it without a separation.
do for /nfts/ /nft-explorer it will be the same
@ihomp |
Issue
we need to replace it with token selector, so user can see nfts on sale for any token